const db = require("./db/index");
const MovieModel = require("./models/MovieModel");

db(() => {
  // 模型对象
  MovieModel.create(
    {
      title: "夏洛特烦恼",
      director: "开心麻花",
    },
    (err, data) => {
      if (err) {
        return console.log(err);
      }

      console.log(data);
    }
  );
});
